from util.matrix import Matrix

__author__ = 'Douglas'

m1 = Matrix(2, 3, 2)
m2 = Matrix([[2, 7], [4, 3], [5, 2]])
m3 = Matrix([[False, False], [True, False]])

m1[0][0] = 2
m1[0][1] = 5
m1[0][2] = 9
m1[1][0] = 3
m1[1][1] = 6
m1[1][2] = 8

print(m1)
print(m2)
print(m2.transpose())
print(m2.get_column(0))
print(m2.get_column(0).transpose())
print(m1 + m1)
print(m1 - m1)
print(m1 * m2)
print(m2 * m1)

print(Matrix.create_identity_matrix(5))

print(m3)
print(m3.from_boolean_to_bipolar())

print(m2.delete_row(1))
print(m2.delete_column(1))
print(m2.ramdomize(-1, 1))